<div class="treatmentRecords form">
<?php echo $this->Form->create('TreatmentRecord');?>
	<fieldset>
		<legend><?php __('Manager Edit Treatment Record'); ?></legend>
	<?php
		echo $this->Form->input('id');
		echo $this->Form->input('user_id');
		echo $this->Form->input('branch_id');
		echo $this->Form->input('treatment_id');
		echo $this->Form->input('value');
		echo $this->Form->input('unit_id');
		?>
		
		<div class="input text required">
			<label for="TreatmentRecordYear"><?php __('Year'); ?></label>
			
			<select name="data[TreatmentRecord][year]" id="TreatmentRecordYear">        
			    <?php for($i=1991; $i < 2031; $i++ ) {
				$selected = "";
				if($year == $i)
				{
				    $selected = 'selected="selected"';
				}
			    ?>
				<option value="<?php echo $i ?>" <?php echo $selected; ?> ><?php echo $i ?></option>
			    <?php } ?>
			</select>
		</div>
		
		<?php
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('TreatmentRecord.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('TreatmentRecord.id'))); ?></li>
		<li><?php echo $this->Html->link(__('List Treatment Records', true), array('action' => 'index'));?></li>
		<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Branches', true), array('controller' => 'branches', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Branch', true), array('controller' => 'branches', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Treatments', true), array('controller' => 'treatments', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Treatment', true), array('controller' => 'treatments', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Units', true), array('controller' => 'units', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Unit', true), array('controller' => 'units', 'action' => 'add')); ?> </li>
	</ul>
</div>